package com.server.controller;

import com.server.model.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/user")
public class UserController {


    @RequestMapping(value = "/test")
    public String test(){
        return "Test ok";
    }

    @RequestMapping(value = "/getUser")
    public User getUser(){
        User user = new User();
        user.setName("张三");
        user.setAge(12);

        return user;
    }

    public static void main(String[] args) {
        System.out.println(12);
    }

}
